<include file='Public:head' />
<body class="J_scroll_fixed">
<style>
.pop_nav{
	padding: 0px;
}


</style>
<div class="wrap J_check_wrap">
  <div class="nav">
    <ul class="cc">
		<li class="current"><a href="javascrip:;">网站设置</a></li>
		<li ><a href="{:U('Config/add')}">添加配置</a></li>
		<li ><a href="{:U('Config/update_cache')}">更新缓存</a></li>
      </ul>
	</div>
  <div class="pop_nav">
    <ul class="J_tabs_nav">
	  <foreach name="data" item='v' >
      	<li <if condition="$key eq '基本设置'">class='current'</if>><a href="javascript:;;">{$key}</a></li>
	  </foreach>
    </ul>
  </div>
  <form method="post" class="J_ajaxForm" action="{:U('Config/edit')}" >
    <div class="J_tabs_contents">
    	<foreach name="data"  item='v'>
	      <div <if condition="$key neq '基本设置'">style='display:none'</if>>
	        <div class="h_a">{$key}</div>
	        <div class="">
	          <table width="100%" class="layui-table ">

	           <tbody class="layui-form">
					<foreach name="v" item='value'>
						<tr>
							<th width="120"><input type="text" style='width:80px' name="sort[{$value.code}]" value="{$value.sort}" class='layui-input length_2 '/></th>
							<th width="200">{$value.title} <br>{$value.code}</th>
							<td align="left">{$value.form}</td>
				
						</tr>
					</foreach>
				</tbody>
	          </table>
	        </div>
	      </div>
	  </foreach>
    
      
      </div>
 
    <div class="btn_wrap">
      <div class="btn_wrap_pd">
        <button class="layui-btn J_ajax_submit_btn " type="submit">提交</button>
      </div>
    </div>
  </form>
</div>
<script src="__ROOT__/lib/layuiadmin/layui/layui.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/mod.common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/mod.content_addtop.js"></script>

  
<script type="text/html" id="J_PhotoTpl">
    <li>
        <div class="img"><img src="__ROOT__/{{ d.file }}" /></div>
        <i class="layui-icon layui-icon-delete feng-photo-delete" title="删除图片" data-path="{{ d.file }}">
          <a href="__ROOT__/index.php/Admin/Upload/del/id/{{ d.id }}.html"></a>
        </i>
    </li>
</script>


</body>
</html>